Add Homepluscontrol integration#46783
Merged
Merged
Conversation
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
This adds the Legrand Home+ Control integration to the Home Assistant core. This integration connects Home Assistant to the Legrand API that can manage "Legrand/Bticino with Netatmo" products. This API is one of several that Legrand exposes through their "Works with Legrand" platform: https://developer.legrand.com/
In this initial PR, the integration adds a simple switch entity to represent the in-wall switches and power outlets that are part of this Legrand smart home product range.
Type of change
Example entry for
configuration.yaml:Additional information
The integration uses cloud-polling with a single API poll to fetch the data of all entities.
Authentication follows an oauth2 exchange.
The Legrand API only allows 500 API calls per day, so this is catered for in the configuration of the integration - refresh intervals have default values that are larger than ideal, but are currently the best possible to prevent reaching daily quota limitations. In any case, these intervals are configurable in the integration.
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: